﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/xml/NewDataSet">
    <div style="margin: 0px; padding: 10px 2px 2px 8px;">
      <span style="FONT-SIZE: 12px;font-weight:bold;">审批附件</span>
      <xsl:text>  </xsl:text>
      <a id="aUpFile" href="#" onclick="upFile()">上传</a>
      <br/>
      <input id="__isallowopenfile" type="hidden" value="true" />
      <table style="height:100%;width:100%">
        <tr>
          <td id="tdForm" style="margin: 0px; padding:0px 2px 2px 15px">
            <table width="80%" cellspacing="0" cellpadding="0" border="0" id="tblAttachMent">
              <xsl:for-each select="_tb">
                <xsl:if test="position() mod 2 = 1">
                  <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
                </xsl:if>
                <td width="50%" height="18px">
                  <img src="/_imgs/ico_16_1039_d.gif" align="absmiddle"/>
                  <xsl:element name="a">
                    <xsl:attribute name="href">#</xsl:attribute>
                    <xsl:attribute name="oncontextmenu">showMenu(this)</xsl:attribute>
                    <xsl:attribute name="onclick">event.cancelBubble=true;showMenu(this);</xsl:attribute>
                    <xsl:attribute name="title">
                      <xsl:value-of select="DocName"/>
                    </xsl:attribute>
                    <xsl:attribute name="oid">
                      <xsl:value-of select="DocGUID"/>
                    </xsl:attribute>
                    <xsl:attribute name="docname">
                      <xsl:value-of select="DocName"/>
                    </xsl:attribute>
                    <xsl:attribute name="filename">
                      <xsl:value-of select="FileName"/>
                    </xsl:attribute>
                    <xsl:attribute name="createname">
                      <xsl:value-of select="UserName"/>
                    </xsl:attribute>
                    <xsl:attribute name="createby">
                      <xsl:value-of select="CreateBy"/>
                    </xsl:attribute>
                    <xsl:attribute name="modifieduser">
                      <xsl:value-of select="ModifiedUser"/>
                    </xsl:attribute>
                    <xsl:attribute name="modifiedtime">
                      <xsl:value-of select="ModifiedDateTime"/>
                    </xsl:attribute>
                    <xsl:attribute name="createon">
                      <xsl:value-of select="CreateOn"/>
                    </xsl:attribute>
                    <xsl:attribute name="lockedby">
                      <xsl:value-of select="LockedBy"/>
                    </xsl:attribute>
                    <xsl:attribute name="title">
                      <xsl:value-of select="DocName"/>
                    </xsl:attribute>
                    <xsl:value-of select="DocName1"/>
                  </xsl:element><xsl:if test="LockedBy != ''">
                      <font style="color:red;">(签出)</font>
                    </xsl:if>
                </td>
                <xsl:if test="position() = last() and position() mod 2 = 1">
                  <td width="50%">　</td>
                </xsl:if>
                <xsl:if test="position() mod 2 = 0">
                  <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
                </xsl:if>
              </xsl:for-each>
            </table>
          </td>
        </tr>
      </table>
    </div>
  </xsl:template>
</xsl:stylesheet>